package com.pennphoto.server;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import com.pennphoto.client.LoginService;

@SuppressWarnings("serial")
public class LoginServiceImpl extends RemoteServiceServlet implements LoginService{

	
	@Override
	public int getUserIdForLogin(String username, String passwd)
			throws Exception {
		Integer userid=-1;
		QueryServiceImpl q = new QueryServiceImpl();
		int uid = q.getUserIdForCredentials(username, passwd);
		if(uid!=0)
			userid=uid;
		return userid;
	}

}
